|
|
 |
|
|
|
|
Dim j As Integer
Dim x0 As Single
Dim y0 As Single
Dim z0 As Single
Dim x1 As Single
Dim y1 As Single
Dim z1 As Single
Dim x2 As Single
Dim y2 As Single
Dim z2 As Single
Set ThePolyline = New Polyline3d
' Add the original curve to ThePolyline. x1 = CurvePoints(1).coord(1)
y1 = CurvePoints(1).coord(2)
z1 = CurvePoints(1).coord(3)
For j = 2 To NumCurvePts
x2 = CurvePoints(j).coord(1)
y2 = CurvePoints(j).coord(2)
z2 = CurvePoints(j).coord(3)
ThePolyline.AddSegment x1, y1, z1, x2, y2, z2
x1 = x2
y1 = y2
z1 = z2
Next j
' Start with the transformed coordinates
' the same as the original coordinates. For j = 1 To NumCurvePts
CurvePoints(j).trans(1) = CurvePoints(j).coord(1)
CurvePoints(j).trans(2) = CurvePoints(j).coord(2)
CurvePoints(j).trans(3) = CurvePoints(j).coord(3)
Next j
' Create the transformed copies of the curve. For i = 1 To NumTransformations ' Place the first point. x1 = CurvePoints(1).trans(1)
y1 = CurvePoints(1).trans(2)
z1 = CurvePoints(1).trans(3)
m3ApplyFull _
CurvePoints(1).coord, _
Transformations(i).M, _
CurvePoints(1).trans
x0 = CurvePoints(1).trans(1)
y0 = CurvePoints(1).trans(2)
z0 = CurvePoints(1).trans(3)
ThePolyline.AddSegment x1, y1, z1, x0, y0, z0
' Add the rest of the points. For j = 2 To NumCurvePts |
|
|
|
|
|